package com.comsumer;

import com.alibaba.dubbo.config.annotation.Reference;
import com.service.UserInfoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * Created by 石头哥哥 on 8/31/16.
 * PACKAGE_NAME:  com.comsumer
 * COMMENT :
 */
@Component
public class ComsumerService {

    @Reference
    private UserInfoService userInfoService;

    /**
     * logger
     */
    private Logger logger = LoggerFactory.getLogger("ComsumerService");

    public void SayHello() {
        logger.info("username get from provider:{}", userInfoService.getUserName());
    }


}
